lib: Stop using old `ostree_sysroot_get_repo()` API
authorColin Walters <walters@verbum.org>
Wed, 6 Jul 2022 11:46:42 +0000 (07:46 -0400)
committerColin Walters <walters@verbum.org>
Wed, 6 Jul 2022 11:47:57 +0000 (07:47 -0400)
commitbecc18936ff7e225e7723adae558186bcc3e1b36
tree2e54e5091a0716595aae5c5ea8cbb8acffaaa51e
parent0d911bf91f84363f0f4fd88eefc9244f6910014d
lib: Stop using old `ostree_sysroot_get_repo()` API

It's falliable, and in one place we were actually ignoring
the error and leaving a `NULL` repo object which is just a trap
for people coming along later since it's rarely nullable.

Quite a while ago we switched to loading the repo at the same time
as the sysroot; convert callers in the library to use this infallible
accessor.

Prep for another patch which will use the repo object.
src/libostree/ostree-sysroot-deploy.c
src/libostree/ostree-sysroot-upgrader.c